<script type="text/javascript">
    setTimeout(function(){
        jQuery(".chzn-select").chosen();
    },1);
</script>
<div class="breadcrumbwidget">
	<ul class="skins">
        <li><a href="default" class="skin-color default"></a></li>
        <li><a href="orange" class="skin-color orange"></a></li>
        <li>&nbsp;</li>
        <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
        <li class="wide"><a href="" class="skin-layout wide"></a></li>
    </ul><!--skins-->
	<ul class="breadcrumb">
        <li><a href="<?php echo $baseurl?>">Trang chủ</a> <span class="divider">/</span></li>
        <li class="active">Thông tin đặt bàn</li>
    </ul>
</div><!--breadcrumbwidget-->
<div class="pagetitle">
	<h1>Thông tin đặt bàn</h1> <span></span>
</div>
<div class="maincontent">
    <?php if(validation_errors()):?>
        <div class="alert alert-error" style="margin: 10px 10px 10px 40px;">
          <button data-dismiss="alert" class="close" type="button">×</button>
          <?php echo validation_errors(); ?>
        </div>
    <?php endif;?>
    <div class="contentinner content-dashboard">
    <form action="" method="post" accept-charset="utf-8" class="stdform" onsubmit="return false">    
    <p style="margin: 35px 5px 10px 0px;font-size: 18px;">
        Thông tin nhà hàng
            <hr style="border-top: 1px soild #DCDCDC !important;margin: 0px;" />
    </p>
    <p>
    	<label>Tên nhà hàng</label>
        <span class="field">
            <?php echo strip_tags($data->rname);?>
        </span>
    </p>
    <p>
        <label>Logo đại diện</label>
        <span class="field cpp">
            <img src="<?php echo $imgbase.$data->logo?>" id="img_show_1" style="display: inline-block; vertical-align: middle;width: 144px;height: 44px;" onError="this.src='<?php echo $baseurl."public/theme/manage/img/gray_jean.png";?>'" />
        </span>
    </p>
    <p>
        <label>Hotline của nhà hàng</label>
        <span class="field cpp">
            <img src="<?php echo $imgbase.$data->hotline?>" id="img_show_1" style="display: inline-block; vertical-align: middle;width: 144px;height: 44px;"/>
        </span>
    </p>
    <p>
        <label>Địa chỉ</label>
        <span class="field cpp">
            - <?php echo $data->ztitle?>, <?php echo $data->title?> <br />
            - <?php echo $data->address?>, <?php echo $data->raphone?>
        </span>
    </p>
    <p style="margin: 35px 5px 10px 0px;font-size: 18px;">
        Thông tin khách đặt bàn
            <hr style="border-top: 1px soild #DCDCDC !important;margin: 0px;" />
    </p>
    <p>
    	<label>Tên khách hàng</label>
        <span class="field">
            <?php echo strip_tags($data->bname);?>
        </span>
    </p>
    <p>
    	<label>Số điện thoại</label>
        <span class="field">
            <?php echo $data->phone?>
        </span>
    </p>
    <p>
    	<label>Email</label>
        <span class="field">
            <?php echo $data->email?>
        </span>
    </p>
    <p>
    	<label>Số lượng</label>
        <span class="field">
            <?php echo $data->peoples?> người
        </span>
    </p>
    <p>
    	<label>Thành viên G-People</label>
        <span class="field">
            <?php echo $data->is_gpeople == 1 ? 'Có' : 'Không'?>
        </span>
    </p>
    <p>
    	<label>Thời gian sử dụng bàn</label>
        <span class="field">
            <?php echo str_replace('|', ' ', $data->time_booking);?>
        </span>
    </p>
    <p>
    	<label>Thời gian đặt bàn</label>
        <span class="field">
            <?php echo $data->time;?>
        </span>
    </p>
    <p>
    	<label>Yêu cầu khác</label>
        <span class="field">
            <?php echo $data->required;?>
        </span>
    </p>
    <p>
        <label></label>
        <!-- <button class="btn btn-rounded" type="submit"> <i class="iconfa-ok"></i> &nbsp; Lưu lại</button> -->
        <button class="btn btn-rounded" type="button" onclick="window.location='<?php echo $baseurl.'manage/restaurant/order'?>'"> <i class="icon-arrow-right"></i> &nbsp; Quay lại</button>
    </p>
    </form>
    </div>
</div>

<script>

function convertimage(id, id_parse, img_show, stv)
{
    var id = id;
    var id_parse = id_parse;
    var img_show = img_show;
    var filesSelected = document.getElementById(id+'_'+stv).files;
    if (filesSelected.length > 0)
    {
        var fileToLoad = filesSelected[0];
        var fileReader = new FileReader();

        fileReader.onload = function(fileLoadedEvent)
        {
            $("#"+id_parse+stv).attr('value', fileLoadedEvent.target.result);
            $("#"+img_show+stv).attr('src', fileLoadedEvent.target.result);
        };

        fileReader.readAsDataURL(fileToLoad);
    }
}

</script>
<style>
.field{
    padding-top: 5px !important;font-weight: bold
}
</style>